<template>
  <view class="listright">
  <view class="auther-img">
     <image src="../../static/image/pi.jpeg" class="img"></image>
   </view>
   <view class="right-box" @click="changeColor">
     <uni-icons :type="type" size="30" color="#FFFFFF"></uni-icons>
   </view>
   <view class="number">
     {{heartNum}}
   </view>
   <view class="right-box">
     <uni-icons type='chat' size="30" color="#FFFFFF"></uni-icons>
   </view>
   <view class="number">
     111
   </view>
   <view class="right-box">
     <uni-icons type="undo" size="30" color="#FFFFFF"></uni-icons>
   </view>
   <view class="number">
     111
   </view>
 <!--  <view class="right-box"></view>
   <view class="number">
     111
   </view> -->
   <view class="around">
     <image src="../../static/image/music.jpeg"  class="img"></image>
   </view>
  </view>
</template>

<script>
  export default {
    name:"listRight",
    data() {
      return {
         type:"heart",
         heartNum:100
      };
    },
    methods:{
      changeColor(){
        this.type=this.type=='heart'?'heart-filled':'heart'
        if(this.type=='heart-filled'){
          this.heartNum =101
        }
        else{
          this.heartNum =100
        }
       
      }
    }
  }
</script>

<style>
  .listright{
    width:50px;
    margin: 0 auto;
  }
  .auther-img{
    height:50px;
    width:50px;
    border-radius:50%;
    border:2px solid #FFFFFF;
  }
  .right-box{
    width:50px;
    height:40px;
    margin-top:13px;
    text-align: center;
    line-height: 40px;
    color:#FFFFFF;
    font-size: 20px;
  }
.img{
  height:50px;
  width:50px;
  border-radius: 50%;
}
.number{
      font-size: 10px;
      text-align: center;
      color:#FFFFFF;
    }
    .around{
      margin-top:15px;
      height:50px;
      width:50px;
      animation: rotate 1.8s linear 0.2s infinite;
    }
    
    @keyframes rotate{
      0%{
        transform: rotate(0deg);
      }
      100%{
        transform: rotate(360deg);
      }
    }
</style>